<? include 'server_config.php'; ?>

<?
	$sql = "INSERT INTO ud_order VALUES ('','".$_POST['q_name']."', '".$_POST['q_contact']."','".$_POST['q_mail']."','".$_POST['q_idx'].". ".$_POST['q_item_name']." - ".$_POST['q_content']."',CURRENT_TIMESTAMP);";
	
//	echo $sql;
	$result = mysql_query($sql,$connect);

?>

<script> location.href="p6.php?idx=<? echo $_POST['q_idx'];?>&type=<? echo $_POST['q_type'];?>&registered=1";</script>